/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Clases;

import java.awt.Graphics;
import java.awt.Image;
import javax.swing.ImageIcon;
import javax.swing.JDesktopPane;

/**
 *
 * @author Victor
 */
public class Escritorio extends JDesktopPane {
    
    private Image IMG=new ImageIcon(getClass().getResource("/Images/back.png")).getImage();

    public Escritorio() {
        
    }
    
    
    public void setImagen(String nombre) { 
        repaint();
    }
    
    @Override
    public void paintChildren(Graphics g) {
        
        g.drawImage(IMG, 0, 0, getWidth(), getHeight(), this);
        setOpaque(true);        
        super.paintChildren(g);
    }
    
}
